import net.sf.cglib.proxy.Enhancer;
import proxy.MyMethodInterceptor;
import xml改纯注解.service.UserService;

public class Main {
    public static void main(String[] args) {
        Enhancer enhancer=new Enhancer();
        enhancer.setSuperclass(UserService.class);
        enhancer.setCallback(new MyMethodInterceptor());
        UserService userServiceProxy=(UserService) enhancer.create();
        userServiceProxy.getUserByID();
    }
}
